<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<style>
  h1 {
    font-size: 16px;
    font-family: Arial;
  }

  .test1 {
    border-collapse: separate;
    border-spacing: 10px 20px;
  }

  .test2 {
    border-collapse: collapse;
    border-spacing: 10px 20px;
  }

  #showDetailDialog div {
    width: 195px;
    float: left;
    padding: 1rem 0;
  }
</style>
<head>
  <title>Title</title>
  <base href="<%=basePath%>"/>
  <%@include file="/WEB-INF/views/common/common.jsp" %>
  <script type="text/javascript" src="static/js/model/task.js"></script>
</head>
<body>
<%--数据展示表格--%>
<table id="taskDatagrid"></table>

<%--表格工具栏--%>
<div id="taskDatagridToolbar">
  <shiro:hasPermission name="task:adopt">
    <a data-cmd="taskClaim" href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">审批</a>
  </shiro:hasPermission>
  <a data-cmd="queryScode" href="javascript:;" class="easyui-linkbutton " data-options="iconCls:'icon-add',plain:true">查询申请码</a>
  <form id="searchForm">
    状态:
    <select id="searchState" name="state" class="easyui-combobox" data-options="panelHeight:'auto'"
            style="width:120px;">
      <option value="">---请选择---</option>
      <option value="1">未认领</option>
      <option value="2">已通过</option>
      <option value="3">已拒绝</option>
      <option value="4">已作废</option>
    </select>
    <input id="searchQ" name="q" class="easyui-textbox" style="width:100px"/>
    <a data-cmd="search" href="javascript:;" class="easyui-linkbutton " data-options="iconCls:'icon-search'">搜索</a>
    <%--<a data-cmd="searchAdvance" href="javascript:;" class="easyui-linkbutton "--%>
    <%--data-options="iconCls:'icon-search'">高级搜索</a>--%>
  </form>
</div>

<%--认领任务模态框--%>
<div id="taskClaimDialog">
  <form id="taskClaimDialogForm">
    <input type="hidden" name="id">
    <input type="hidden" name="state">
    <table>
      <tr>
        <td>系统名称</td>
        <td>
          <input name="name" class="easyui-textbox" style="width:200px" data-options="editable:false">
        </td>
      </tr>
      <tr>
        <td> 系统版本</td>
        <td>
          <input name="version" class="easyui-textbox" style="width:200px" data-options="editable:false">
        </td>
      </tr>
      <tr>
        <td>申请人</td>
        <td>
          <input name="applicant" class="easyui-textbox" style="width:200px" data-options="editable:false">
        </td>
      </tr>
      <tr>
        <td>申请原因</td>
        <td>
          <input name="applyrea" class="easyui-textbox" style="width:200px" data-options="editable:false">
        </td>
      </tr>
      <tr>
        <td>申请码</td>
        <td>
          <input name="applycode" class="easyui-textbox" style="width:200px" data-options="editable:false">
        </td>
      </tr>
      <tr>
        <td>申请日期</td>
        <td>
          <input name="applydate" class="easyui-textbox" style="width:200px" data-options="editable:false">
        </td>
      </tr>
      <tr>
        <td>截至日期</td>
        <td>
          <input name="deadline" class="easyui-textbox" style="width:200px" data-options="editable:false">
        </td>
      </tr>
      <tr>
        <td>授权行政</td>
        <td>
          <input name="administration" class="easyui-textbox" style="width:200px" data-options="editable:false">
        </td>
      </tr>
      <tr>
        <td>授权码</td>
        <td>
          <input name="license" class="easyui-textbox" style="width:200px" value="有个生成的方法（）"/>
        </td>
      </tr>
      <tr>
        <td>拒绝原因</td>
        <td>
          <input name="denyrea" style="width:200px" required="true">
        </td>
      </tr>

    </table>
  </form>
</div>

<%--任务模态框工具栏--%>
<div id="taskClaimDialogToolbar">
  <a data-cmd="taskAdopt" href="javascript:;" class="easyui-linkbutton c4"
     data-options="iconCls:'icon-save',plain:true">通过</a>
  <a data-cmd="taskUnadopt" href="javascript:;" class="easyui-linkbutton c5"
     data-options="iconCls:'icon-cancel',plain:true">不通过</a>
  <a data-cmd="taskCancel" href="javascript:;" class="easyui-linkbutton "
     data-options="iconCls:'icon-cancel',plain:true">取消</a>
</div>

<div id="querySystemDialog">
  <form id="querySystemForm">
    <table>
      <tr>
        <td>申请系统申请码</td>
        <td>
          <input name="queryByApplycode" class="easyui-textbox" required="true" style="width:200px">
        </td>
      </tr>
    </table>
  </form>
</div>
<%--查询申请单模态框工具栏--%>
<div id="querySystemDialogToolbar">
  <a data-cmd="queryCommit" href="javascript:;" class="easyui-linkbutton c4"
     data-options="iconCls:'icon-save',plain:true">提交</a>
  <a data-cmd="queryCancel" href="javascript:;" class="easyui-linkbutton c5"
     data-options="iconCls:'icon-cancel',plain:true">取消</a>
</div>

<div id="showDetailDialog">
  <form id="showDetailForm">
    <table class="test1">
      <tr>
        <td>系统名称</td>
        <td><input name="name" readonly unselectable="on" style="border:0px;width:200px"></td>
        <td>系统版本</td>
        <td><input name="version" readonly unselectable="on" style="border:0px;width:200px"></td>
      </tr>

      <tr>
        <td>申请码</td>
        <td><input name="applycode" readonly unselectable="on" style="border:0px;width:200px"></td>
        <td>授权码</td>
        <td><input name="license" readonly unselectable="on" style="border:0px;width:200px"></td>
      </tr>
      <tr>
        <td>申请日期</td>
        <td><input name="applydate" readonly unselectable="on" style="border:0px;width:200px"></td>
        <td>截至日期</td>
        <td><input name="deadline" readonly unselectable="on" style="border:0px;width:200px"></td>
      </tr>
      <tr>
        <td  width="20px">申请原因</td>
        <td ><input name="applyrea" readonly unselectable="on" style="border:0px;width:200px"></td>
        <td  width="20px">行政</td>
        <td ><input name="administration" readonly unselectable="on" style="border:0px;width:200px"></td>
      </tr>
      <tr>
        <td>办理人</td>
        <td><input name="assignee" readonly unselectable="on" style="border:0px;width:200px"></td>
        <td>拒绝原因</td>
        <td><input name="denyrea" readonly unselectable="on" style="border:0px;width:200px"></td>
      </tr>
    </table>
  </form>
  <%--<div  style="width: 195px">系统名称</div>--%>
  <%--<div name="name" style="width: 195px"></div>--%>
  <%--<div  style="width: 195px">系统版本</div>--%>
  <%--<div  name="version" style="width: 195px" ></div>--%>
  <%--<div  style="width: 195px">状态</div>--%>
  <%--<div id="sda" name="state" style="width: 195px"></div>--%>
  <%--<div style="width: 195px">申请人</div>--%>
  <%--<div name="applicant"style="width: 195px"></div>--%>
  <%--<div style="width: 195px">申请原因</div>--%>
  <%--<div name="applyrea"style="width: 195px"></div>--%>
  <%--<div style="width: 195px">申请码</div>--%>
  <%--<div name="applycode"style="width: 195px"></div>--%>
  <%--<div style="width: 195px">处理人</div>--%>
  <%--<div name="assignee"style="width: 195px"></div>--%>
  <%--<div style="width: 190px">行政</div>--%>
  <%--<div name="administration" style="width: 195px"></div>--%>
  <%--<div style="width: 190px">申请日期</div>--%>
  <%--<div name="applydate" style="width: 195px"></div>--%>
  <%--<div style="width: 195px">截止日期</div>--%>
  <%--<div name="deadline" style="width: 195px"></div>--%>
  <%--<div style="width: 195px">授权码</div>--%>
  <%--<div name="license" style="width: 195px"></div>--%>
  <%--<div style="width: 195px">拒绝原因</div>--%>
  <%--<div name="denyrea" style="width: 195px"></div>--%>


</div>

<div id="showDetailDialogToolbar">
  <a data-cmd="ok" href="javascript:void(0);" class="easyui-linkbutton c1"
     data-options="iconCls:'icon-ok'">好的，我看清楚了</a>
</div>

</body>
</html>
